<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: RTC</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">模块</a> &#124;
<a href="#nested-classes">结构体</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">RTC<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>RTC driver modules  
<a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
模块</h2></td></tr>
<tr class="memitem:group___r_t_c___exported___constants"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___exported___constants.html">RTC_Exported_Constants</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___r_t_c___private___functions"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c___private___functions.html">RTC_Private_Functions</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
结构体</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">RTC Time structure definition  <a href="struct_r_t_c___time_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">RTC Date structure definition  <a href="struct_r_t_c___date_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_r_t_c___alarm_enable_type_def.html">RTC_AlarmEnableTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">RTC ALARM Enable structure definition  <a href="struct_r_t_c___alarm_enable_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">RTC Alarm structure definition  <a href="struct_r_t_c___alarm_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_r_t_c___init_type_def.html">RTC_InitTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">RTC Init structures definition  <a href="struct_r_t_c___init_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_r_t_c___handle_type_def.html">RTC_HandleTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Time Handle Structure definition  <a href="struct_r_t_c___handle_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ga85a86279530966609d37154bce76e12b"><td class="memItemLeft" align="right" valign="top"><a id="ga85a86279530966609d37154bce76e12b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_TIME_RESERVED_MASK</b>&#160;&#160;&#160;((uint32_t)0x073F7F7F)</td></tr>
<tr class="separator:ga85a86279530966609d37154bce76e12b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga997ca8e7c3777efcc1345d62a2103403"><td class="memItemLeft" align="right" valign="top"><a id="ga997ca8e7c3777efcc1345d62a2103403"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_DATE_RESERVED_MASK</b>&#160;&#160;&#160;((uint32_t)0x00FF9F3F)</td></tr>
<tr class="separator:ga997ca8e7c3777efcc1345d62a2103403"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gafb1a91764849fa4d89f4046a5d92cbb7"><td class="memItemLeft" align="right" valign="top"><a id="gafb1a91764849fa4d89f4046a5d92cbb7"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_WeekDay_RESERVED_MASK</b>&#160;&#160;&#160;((uint32_t)0x07000000)</td></tr>
<tr class="separator:gafb1a91764849fa4d89f4046a5d92cbb7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0dbaf639bc171f2055c9055d538f13df"><td class="memItemLeft" align="right" valign="top"><a id="ga0dbaf639bc171f2055c9055d538f13df"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_INIT_MASK</b>&#160;&#160;&#160;((uint32_t)<a class="el" href="group__wb32l003.html#ga597c6162ef9d6bd86a65071d57cc65ef">RTC_ISR_WAIT_Msk</a>)</td></tr>
<tr class="separator:ga0dbaf639bc171f2055c9055d538f13df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab16dcc6973c611e087030cdb15203972"><td class="memItemLeft" align="right" valign="top"><a id="gab16dcc6973c611e087030cdb15203972"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_ISR_INITF</b>&#160;&#160;&#160;((uint32_t)RTC_ISR_WAITF)</td></tr>
<tr class="separator:gab16dcc6973c611e087030cdb15203972"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae0eb2f998cd3e7325974347cb2a3d25a"><td class="memItemLeft" align="right" valign="top"><a id="gae0eb2f998cd3e7325974347cb2a3d25a"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_ISR_INIT</b>&#160;&#160;&#160;((uint32_t)RTC_ISR_WAIT)</td></tr>
<tr class="separator:gae0eb2f998cd3e7325974347cb2a3d25a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3a1033490aaf8304e1522d551bd1a7b9"><td class="memItemLeft" align="right" valign="top"><a id="ga3a1033490aaf8304e1522d551bd1a7b9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_RSF_MASK</b>&#160;&#160;&#160;((uint32_t)0xFFFFFFFA)</td></tr>
<tr class="separator:ga3a1033490aaf8304e1522d551bd1a7b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0c7513e50528d7b5a52e88340a4e7b25"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_FLAGS_MASK</b></td></tr>
<tr class="separator:ga0c7513e50528d7b5a52e88340a4e7b25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab89243e1f23e45fedc6357396b26827d"><td class="memItemLeft" align="right" valign="top"><a id="gab89243e1f23e45fedc6357396b26827d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>INITMODE_TIMEOUT</b>&#160;&#160;&#160;((uint32_t)0x00010000)</td></tr>
<tr class="separator:gab89243e1f23e45fedc6357396b26827d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga017f8fc40e791545ae1dfebf84567ed8"><td class="memItemLeft" align="right" valign="top"><a id="ga017f8fc40e791545ae1dfebf84567ed8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SYNCHRO_TIMEOUT</b>&#160;&#160;&#160;((uint32_t)0x00020000)</td></tr>
<tr class="separator:ga017f8fc40e791545ae1dfebf84567ed8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga8eb747bf9698b2482ba6ef4d811de8e0"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga8eb747bf9698b2482ba6ef4d811de8e0">RTC_Init</a> (<a class="el" href="struct_r_t_c___init_type_def.html">RTC_InitTypeDef</a> *RTC_InitStruct)</td></tr>
<tr class="memdesc:ga8eb747bf9698b2482ba6ef4d811de8e0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the RTC registers according to the specified parameters in RTC_InitStruct.  <a href="#ga8eb747bf9698b2482ba6ef4d811de8e0">更多...</a><br /></td></tr>
<tr class="separator:ga8eb747bf9698b2482ba6ef4d811de8e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d4bdfd3ae6957630d15d2497573b7c7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga9d4bdfd3ae6957630d15d2497573b7c7">RTC_WriteProtectionCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga9d4bdfd3ae6957630d15d2497573b7c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the RTC registers write protection.  <a href="#ga9d4bdfd3ae6957630d15d2497573b7c7">更多...</a><br /></td></tr>
<tr class="separator:ga9d4bdfd3ae6957630d15d2497573b7c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga679f8883cbfb267a53ffb1ab4cc5c8c5"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga679f8883cbfb267a53ffb1ab4cc5c8c5">RTC_EnterInitMode</a> (void)</td></tr>
<tr class="memdesc:ga679f8883cbfb267a53ffb1ab4cc5c8c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enters the RTC Initialization mode.  <a href="#ga679f8883cbfb267a53ffb1ab4cc5c8c5">更多...</a><br /></td></tr>
<tr class="separator:ga679f8883cbfb267a53ffb1ab4cc5c8c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga87f86f3b794205f09a1eac51738d900f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga87f86f3b794205f09a1eac51738d900f">RTC_ExitInitMode</a> (void)</td></tr>
<tr class="memdesc:ga87f86f3b794205f09a1eac51738d900f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Exits the RTC Initialization mode.  <a href="#ga87f86f3b794205f09a1eac51738d900f">更多...</a><br /></td></tr>
<tr class="separator:ga87f86f3b794205f09a1eac51738d900f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2938febeef6baf0d91cc066ca5caf095"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga2938febeef6baf0d91cc066ca5caf095">RTC_WaitForSynchro</a> (void)</td></tr>
<tr class="memdesc:ga2938febeef6baf0d91cc066ca5caf095"><td class="mdescLeft">&#160;</td><td class="mdescRight">Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock.  <a href="#ga2938febeef6baf0d91cc066ca5caf095">更多...</a><br /></td></tr>
<tr class="separator:ga2938febeef6baf0d91cc066ca5caf095"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae5e7c682f15b8ae9ddd3b2a85a9df7db"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#gae5e7c682f15b8ae9ddd3b2a85a9df7db">RTC_BypassShadowCmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:gae5e7c682f15b8ae9ddd3b2a85a9df7db"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or Disables the Bypass Shadow feature.  <a href="#gae5e7c682f15b8ae9ddd3b2a85a9df7db">更多...</a><br /></td></tr>
<tr class="separator:gae5e7c682f15b8ae9ddd3b2a85a9df7db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6">RTC_SetTime</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *RTC_TimeStruct)</td></tr>
<tr class="memdesc:ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the RTC current time.  <a href="#ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6">更多...</a><br /></td></tr>
<tr class="separator:ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0404db6e0c70e5a6bbbe4fa58a577365"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga0404db6e0c70e5a6bbbe4fa58a577365">RTC_TimeStructInit</a> (<a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *RTC_TimeStruct)</td></tr>
<tr class="memdesc:ga0404db6e0c70e5a6bbbe4fa58a577365"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills each RTC_TimeStruct member with its default value (Time = 00h:00min:00sec).  <a href="#ga0404db6e0c70e5a6bbbe4fa58a577365">更多...</a><br /></td></tr>
<tr class="separator:ga0404db6e0c70e5a6bbbe4fa58a577365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1fcc101339c77aebd25ec3621fd1b61a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga1fcc101339c77aebd25ec3621fd1b61a">RTC_GetTime</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *RTC_TimeStruct)</td></tr>
<tr class="memdesc:ga1fcc101339c77aebd25ec3621fd1b61a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the RTC current Time.  <a href="#ga1fcc101339c77aebd25ec3621fd1b61a">更多...</a><br /></td></tr>
<tr class="separator:ga1fcc101339c77aebd25ec3621fd1b61a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga69d08538147f3d89c818dcfabf50e362"><td class="memItemLeft" align="right" valign="top">ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga69d08538147f3d89c818dcfabf50e362">RTC_SetDate</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *RTC_DateStruct)</td></tr>
<tr class="memdesc:ga69d08538147f3d89c818dcfabf50e362"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the RTC current date.  <a href="#ga69d08538147f3d89c818dcfabf50e362">更多...</a><br /></td></tr>
<tr class="separator:ga69d08538147f3d89c818dcfabf50e362"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6e4e99be910d7759f8910056a2985056"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga6e4e99be910d7759f8910056a2985056">RTC_DateStructInit</a> (<a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *RTC_DateStruct)</td></tr>
<tr class="memdesc:ga6e4e99be910d7759f8910056a2985056"><td class="mdescLeft">&#160;</td><td class="mdescRight">Fills each RTC_DateStruct member with its default value (Monday, January 01 xx00).  <a href="#ga6e4e99be910d7759f8910056a2985056">更多...</a><br /></td></tr>
<tr class="separator:ga6e4e99be910d7759f8910056a2985056"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga582645d554cdd4a316213e90f0b4c8ae"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga582645d554cdd4a316213e90f0b4c8ae">RTC_GetDate</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *RTC_DateStruct)</td></tr>
<tr class="memdesc:ga582645d554cdd4a316213e90f0b4c8ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the RTC current date.  <a href="#ga582645d554cdd4a316213e90f0b4c8ae">更多...</a><br /></td></tr>
<tr class="separator:ga582645d554cdd4a316213e90f0b4c8ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9115ed448e1f6257f49740f4537dcceb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga9115ed448e1f6257f49740f4537dcceb">RTC_SetAlarm1</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *RTC_AlarmStruct)</td></tr>
<tr class="memdesc:ga9115ed448e1f6257f49740f4537dcceb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the specified RTC Alarm1.  <a href="#ga9115ed448e1f6257f49740f4537dcceb">更多...</a><br /></td></tr>
<tr class="separator:ga9115ed448e1f6257f49740f4537dcceb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga36ab6199e21fb415ab1ec4d7aa48ba45"><td class="memItemLeft" align="right" valign="top"><a id="ga36ab6199e21fb415ab1ec4d7aa48ba45"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_AlarmStructInit</b> (<a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *RTC_AlarmStruct)</td></tr>
<tr class="separator:ga36ab6199e21fb415ab1ec4d7aa48ba45"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga80aa39f27f82e276c57bdab40819751e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga80aa39f27f82e276c57bdab40819751e">RTC_Alarm1Cmd</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga80aa39f27f82e276c57bdab40819751e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the specified RTC Alarm.  <a href="#ga80aa39f27f82e276c57bdab40819751e">更多...</a><br /></td></tr>
<tr class="separator:ga80aa39f27f82e276c57bdab40819751e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9bce346eca2e597e2f87bc5debcc663b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga9bce346eca2e597e2f87bc5debcc663b">RTC_GetAlarm1</a> (uint32_t RTC_Format, <a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *RTC_AlarmStruct)</td></tr>
<tr class="memdesc:ga9bce346eca2e597e2f87bc5debcc663b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the RTC Alarm value and masks.  <a href="#ga9bce346eca2e597e2f87bc5debcc663b">更多...</a><br /></td></tr>
<tr class="separator:ga9bce346eca2e597e2f87bc5debcc663b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac2c08f1aeeb664d3d245cb5aca1b8ca8"><td class="memItemLeft" align="right" valign="top"><a id="gac2c08f1aeeb664d3d245cb5aca1b8ca8"></a>
ErrorStatus&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_AlarmCmd</b> (uint32_t RTC_Alarm, FunctionalState NewState)</td></tr>
<tr class="separator:gac2c08f1aeeb664d3d245cb5aca1b8ca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gada26ea641cf4e83f592fd4036d955784"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#gada26ea641cf4e83f592fd4036d955784">RTC_SetALARM2Period</a> (uint32_t Period)</td></tr>
<tr class="memdesc:gada26ea641cf4e83f592fd4036d955784"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the specified RTC Alarm2.  <a href="#gada26ea641cf4e83f592fd4036d955784">更多...</a><br /></td></tr>
<tr class="separator:gada26ea641cf4e83f592fd4036d955784"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga36d097a72b0f3d0c1bf3250da31230a4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga36d097a72b0f3d0c1bf3250da31230a4">RTC_1HZ_Config</a> (FunctionalState NewState)</td></tr>
<tr class="memdesc:ga36d097a72b0f3d0c1bf3250da31230a4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deactive the specified 1HZ out  <a href="#ga36d097a72b0f3d0c1bf3250da31230a4">更多...</a><br /></td></tr>
<tr class="separator:ga36d097a72b0f3d0c1bf3250da31230a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1734325d5de0707b7474f9f073446814"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#ga1734325d5de0707b7474f9f073446814">RTC_CalibConfig</a> (uint32_t RTC_CalibPeriod, uint32_t RTC_CalibMinusPulsesValue)</td></tr>
<tr class="memdesc:ga1734325d5de0707b7474f9f073446814"><td class="mdescLeft">&#160;</td><td class="mdescRight">Configures the Calibration Settings.  <a href="#ga1734325d5de0707b7474f9f073446814">更多...</a><br /></td></tr>
<tr class="separator:ga1734325d5de0707b7474f9f073446814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa8469b33b3a99025baf52f007683b925"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#gaa8469b33b3a99025baf52f007683b925">RTC_ITConfig</a> (uint32_t RTC_IT, FunctionalState NewState)</td></tr>
<tr class="memdesc:gaa8469b33b3a99025baf52f007683b925"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables or disables the specified RTC interrupts.  <a href="#gaa8469b33b3a99025baf52f007683b925">更多...</a><br /></td></tr>
<tr class="separator:gaa8469b33b3a99025baf52f007683b925"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaab81adc6d2a5a5c1e37a49707c6bf640"><td class="memItemLeft" align="right" valign="top"><a id="gaab81adc6d2a5a5c1e37a49707c6bf640"></a>
ITStatus&#160;</td><td class="memItemRight" valign="bottom"><b>RTC_GetITStatus</b> (uint32_t RTC_IT)</td></tr>
<tr class="separator:gaab81adc6d2a5a5c1e37a49707c6bf640"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gacac6accc75ae54f1b799fa8e7e83ccdb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___r_t_c.html#gacac6accc75ae54f1b799fa8e7e83ccdb">RTC_ClearITPendingBit</a> (uint32_t RTC_IT)</td></tr>
<tr class="memdesc:gacac6accc75ae54f1b799fa8e7e83ccdb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clears the RTC's interrupt pending bits.  <a href="#gacac6accc75ae54f1b799fa8e7e83ccdb">更多...</a><br /></td></tr>
<tr class="separator:gacac6accc75ae54f1b799fa8e7e83ccdb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<p>RTC driver modules </p>
<h2 class="groupheader">宏定义说明</h2>
<a id="ga0c7513e50528d7b5a52e88340a4e7b25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0c7513e50528d7b5a52e88340a4e7b25">&#9670;&nbsp;</a></span>RTC_FLAGS_MASK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define RTC_FLAGS_MASK</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">((uint32_t)(RTC_FLAG_ALR2F | RTC_FLAG_ALR1F | RTC_FLAG_RSF | \</div><div class="line">                                              RTC_FLAG_WAITF | RTC_FLAG_WAIT))</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="ga36d097a72b0f3d0c1bf3250da31230a4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga36d097a72b0f3d0c1bf3250da31230a4">&#9670;&nbsp;</a></span>RTC_1HZ_Config()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_1HZ_Config </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Deactive the specified 1HZ out </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>the 1HZ out enable or disable. This parameter can be one of the following values: <ul>
<li>DISABLE </li>
<li>ENABLE </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga80aa39f27f82e276c57bdab40819751e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga80aa39f27f82e276c57bdab40819751e">&#9670;&nbsp;</a></span>RTC_Alarm1Cmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_Alarm1Cmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the specified RTC Alarm. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>new state of the specified alarm. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae5e7c682f15b8ae9ddd3b2a85a9df7db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae5e7c682f15b8ae9ddd3b2a85a9df7db">&#9670;&nbsp;</a></span>RTC_BypassShadowCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_BypassShadowCmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or Disables the Bypass Shadow feature. </p>
<dl class="section note"><dt>注解</dt><dd>When the Bypass Shadow is enabled the calendar value are taken directly from the Calendar counter. </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>new state of the Bypass Shadow feature. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1734325d5de0707b7474f9f073446814"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1734325d5de0707b7474f9f073446814">&#9670;&nbsp;</a></span>RTC_CalibConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_CalibConfig </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_CalibPeriod</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_CalibMinusPulsesValue</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Configures the Calibration Settings. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_CalibPeriod</td><td>: </td></tr>
    <tr><td class="paramname">RTC_CalibMinusPulsesValue</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: RTC Calib registers are configured.</li>
<li>ERROR: RTC Calib registers are not configured. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gacac6accc75ae54f1b799fa8e7e83ccdb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gacac6accc75ae54f1b799fa8e7e83ccdb">&#9670;&nbsp;</a></span>RTC_ClearITPendingBit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_ClearITPendingBit </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_IT</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clears the RTC's interrupt pending bits. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_IT</td><td>specifies the RTC interrupt pending bit to clear. This parameter can be any combination of the following values: <ul>
<li>RTC_IT_ALR2: Alarm 2 interrupt. </li>
<li>RTC_IT_ALR1: Alarm 1 interrupt. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga6e4e99be910d7759f8910056a2985056"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6e4e99be910d7759f8910056a2985056">&#9670;&nbsp;</a></span>RTC_DateStructInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_DateStructInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_DateStruct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills each RTC_DateStruct member with its default value (Monday, January 01 xx00). </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_DateStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___date_type_def.html" title="RTC Date structure definition">RTC_DateTypeDef</a> structure which will be initialized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga679f8883cbfb267a53ffb1ab4cc5c8c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga679f8883cbfb267a53ffb1ab4cc5c8c5">&#9670;&nbsp;</a></span>RTC_EnterInitMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ErrorStatus RTC_EnterInitMode </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enters the RTC Initialization mode. </p>
<dl class="section note"><dt>注解</dt><dd>The RTC Initialization mode is write protected, use the RTC_WriteProtectionCmd(DISABLE) before calling this function. </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: RTC is in Init mode.</li>
<li>ERROR: RTC is not in Init mode. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga87f86f3b794205f09a1eac51738d900f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga87f86f3b794205f09a1eac51738d900f">&#9670;&nbsp;</a></span>RTC_ExitInitMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_ExitInitMode </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Exits the RTC Initialization mode. </p>
<dl class="section note"><dt>注解</dt><dd>When the initialization sequence is complete, the calendar restarts counting after 4 RTCCLK cycles. </dd>
<dd>
The RTC Initialization mode is write protected, use the RTC_WriteProtectionCmd(DISABLE) before calling this function. </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9bce346eca2e597e2f87bc5debcc663b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9bce346eca2e597e2f87bc5debcc663b">&#9670;&nbsp;</a></span>RTC_GetAlarm1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_GetAlarm1 </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_Format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_AlarmStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the RTC Alarm value and masks. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_Format</td><td>specifies the format of the output parameters. This parameter can be one of the following values: <ul>
<li>RTC_Format_BIN: Binary data format. </li>
<li>RTC_Format_BCD: BCD data format. </li>
</ul>
</td></tr>
    <tr><td class="paramname">RTC_AlarmStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___alarm_type_def.html" title="RTC Alarm structure definition">RTC_AlarmTypeDef</a> structure that will contains the output alarm configuration values. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga582645d554cdd4a316213e90f0b4c8ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga582645d554cdd4a316213e90f0b4c8ae">&#9670;&nbsp;</a></span>RTC_GetDate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_GetDate </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_Format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_DateStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the RTC current date. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_Format</td><td>specifies the format of the returned parameters. This parameter can be one of the following values: <ul>
<li>RTC_Format_BIN: Binary data format. </li>
<li>RTC_Format_BCD: BCD data format. </li>
</ul>
</td></tr>
    <tr><td class="paramname">RTC_DateStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___date_type_def.html" title="RTC Date structure definition">RTC_DateTypeDef</a> structure that will contain the returned current date configuration. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga1fcc101339c77aebd25ec3621fd1b61a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga1fcc101339c77aebd25ec3621fd1b61a">&#9670;&nbsp;</a></span>RTC_GetTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_GetTime </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_Format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_TimeStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the RTC current Time. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_Format</td><td>specifies the format of the returned parameters. This parameter can be one of the following values: <ul>
<li>RTC_Format_BIN: Binary data format. </li>
<li>RTC_Format_BCD: BCD data format. </li>
</ul>
</td></tr>
    <tr><td class="paramname">RTC_TimeStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___time_type_def.html" title="RTC Time structure definition">RTC_TimeTypeDef</a> structure that will contain the returned current time configuration. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga8eb747bf9698b2482ba6ef4d811de8e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8eb747bf9698b2482ba6ef4d811de8e0">&#9670;&nbsp;</a></span>RTC_Init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ErrorStatus RTC_Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___init_type_def.html">RTC_InitTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_InitStruct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initializes the RTC registers according to the specified parameters in RTC_InitStruct. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_InitStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___init_type_def.html" title="RTC Init structures definition">RTC_InitTypeDef</a> structure that contains the configuration information for the RTC peripheral. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>The RTC Prescaler register is write protected and can be written in initialization mode only. </dd></dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: RTC registers are initialized.</li>
<li>ERROR: RTC registers are not initialized. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gaa8469b33b3a99025baf52f007683b925"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa8469b33b3a99025baf52f007683b925">&#9670;&nbsp;</a></span>RTC_ITConfig()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_ITConfig </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_IT</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the specified RTC interrupts. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_IT</td><td>specifies the RTC interrupt sources to be enabled or disabled. This parameter can be any combination of the following values: <ul>
<li>RTC_IT_ALR2: Alarm 2 interrupt. </li>
<li>RTC_IT_ALR1: Alarm 1 interrupt. </li>
</ul>
</td></tr>
    <tr><td class="paramname">NewState</td><td>new state of the specified RTC interrupts. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9115ed448e1f6257f49740f4537dcceb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9115ed448e1f6257f49740f4537dcceb">&#9670;&nbsp;</a></span>RTC_SetAlarm1()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_SetAlarm1 </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_Format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___alarm_type_def.html">RTC_AlarmTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_AlarmStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the specified RTC Alarm1. </p>
<dl class="section note"><dt>注解</dt><dd>The Alarm1 register can only be written when the corresponding Alarm is disabled (Use the RTC_AlarmCmd(DISABLE)). </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_Format</td><td>specifies the format of the returned parameters. This parameter can be one of the following values: <ul>
<li>RTC_Format_BIN: Binary data format. </li>
<li>RTC_Format_BCD: BCD data format. </li>
</ul>
</td></tr>
    <tr><td class="paramname">RTC_AlarmStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___alarm_type_def.html" title="RTC Alarm structure definition">RTC_AlarmTypeDef</a> structure that contains the alarm configuration parameters. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gada26ea641cf4e83f592fd4036d955784"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gada26ea641cf4e83f592fd4036d955784">&#9670;&nbsp;</a></span>RTC_SetALARM2Period()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_SetALARM2Period </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>Period</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the specified RTC Alarm2. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">Period</td><td>the Alarm2 cycle time set. This parameter can be a value of <a class="el" href="group___r_t_c___alarm2___p_e_r_i_o_d.html">Definitions</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga69d08538147f3d89c818dcfabf50e362"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga69d08538147f3d89c818dcfabf50e362">&#9670;&nbsp;</a></span>RTC_SetDate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ErrorStatus RTC_SetDate </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_Format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___date_type_def.html">RTC_DateTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_DateStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the RTC current date. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_Format</td><td>specifies the format of the entered parameters. This parameter can be one of the following values: <ul>
<li>RTC_Format_BIN: Binary data format. </li>
<li>RTC_Format_BCD: BCD data format. </li>
</ul>
</td></tr>
    <tr><td class="paramname">RTC_DateStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___date_type_def.html" title="RTC Date structure definition">RTC_DateTypeDef</a> structure that contains the date configuration information for the RTC. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: RTC Date register is configured.</li>
<li>ERROR: RTC Date register is not configured. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9f9df80cfa82f7a4dd9f4d0cf2ffb3a6">&#9670;&nbsp;</a></span>RTC_SetTime()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ErrorStatus RTC_SetTime </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>RTC_Format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_TimeStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the RTC current time. </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_Format</td><td>specifies the format of the entered parameters. This parameter can be one of the following values: <ul>
<li>RTC_Format_BIN: Binary data format. </li>
<li>RTC_Format_BCD: BCD data format. </li>
</ul>
</td></tr>
    <tr><td class="paramname">RTC_TimeStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___time_type_def.html" title="RTC Time structure definition">RTC_TimeTypeDef</a> structure that contains the time configuration information for the RTC. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: RTC Time register is configured.</li>
<li>ERROR: RTC Time register is not configured. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga0404db6e0c70e5a6bbbe4fa58a577365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga0404db6e0c70e5a6bbbe4fa58a577365">&#9670;&nbsp;</a></span>RTC_TimeStructInit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_TimeStructInit </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_r_t_c___time_type_def.html">RTC_TimeTypeDef</a> *&#160;</td>
          <td class="paramname"><em>RTC_TimeStruct</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Fills each RTC_TimeStruct member with its default value (Time = 00h:00min:00sec). </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">RTC_TimeStruct</td><td>pointer to a <a class="el" href="struct_r_t_c___time_type_def.html" title="RTC Time structure definition">RTC_TimeTypeDef</a> structure which will be initialized. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2938febeef6baf0d91cc066ca5caf095"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2938febeef6baf0d91cc066ca5caf095">&#9670;&nbsp;</a></span>RTC_WaitForSynchro()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ErrorStatus RTC_WaitForSynchro </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Waits until the RTC Time and Date registers (RTC_TR and RTC_DR) are synchronized with RTC APB clock. </p>
<dl class="section note"><dt>注解</dt><dd>The RTC Resynchronization mode is write protected, use the RTC_WriteProtectionCmd(DISABLE) before calling this function. </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">An</td><td>ErrorStatus enumeration value:<ul>
<li>SUCCESS: RTC registers are synchronised.</li>
<li>ERROR: RTC registers are not synchronised. </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga9d4bdfd3ae6957630d15d2497573b7c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9d4bdfd3ae6957630d15d2497573b7c7">&#9670;&nbsp;</a></span>RTC_WriteProtectionCmd()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void RTC_WriteProtectionCmd </td>
          <td>(</td>
          <td class="paramtype">FunctionalState&#160;</td>
          <td class="paramname"><em>NewState</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables or disables the RTC registers write protection. </p>
<dl class="section note"><dt>注解</dt><dd>Writing a wrong key reactivates the write protection. </dd>
<dd>
The protection mechanism is not affected by system reset. </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">NewState</td><td>new state of the write protection. This parameter can be: ENABLE or DISABLE. </td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>返回值</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
